package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;

/**
 * ClassName:ApArticleService
 * Package:com.heima.article.service
 * Description:
 *
 * @Author: zongyu
 * @Create: 2024/3/3 - 14:34
 */
public interface ApArticleService extends IService<ApArticle> {
    public ResponseResult load(ArticleHomeDto dto, Short type);

    /**
     * 保存app端文章到数据库
     * @param dto
     * @return
     */
    public ResponseResult saveArticle(ArticleDto dto);
    /**
     * 加载文章详情 数据回显
     * @param dto
     * @return
     */
    public ResponseResult loadArticleBehavior(ArticleInfoDto dto);
}
